package com.wang.mapper;

import com.wang.pojo.Book;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface BookMapper {
    //增
    int addBook(Book book);
    //删
    int deleteBookById(int id);
    //改
    int updateBook(Book book);
    //查
    List<Book> findAllBook();
    //查
    Book findBookById(int id);
}
